﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace ShootThemUp
{
    public abstract class Acteur
    {
        public Vector2 Position { get; set; }
        public Texture2D Texture { get; set; }
        public Point Vitesse { get; set; }

        public Rectangle Rectangle
        {
            get
            {
                return new Rectangle((int)Position.X, (int)Position.Y, Texture.Width, Texture.Height);
            }
        }
        public bool EstSupprimable { get; set; }

        public Acteur(Vector2 position, Texture2D texture, Point vitesse)
        {
            Position = position;
            Texture = texture;
            Vitesse = vitesse;
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(Texture, Position, Color.White);
        }
    }
}
